Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: switch to go-netroute #19

Merged
merged 1 commit into from
Mar 31, 2020
Merged

feat: switch to go-netroute #19

merged 1 commit into from
Mar 31, 2020

Conversation

Stebalien
Copy link
Member

This library makes the correct syscalls instead of shelling out to a binary.

@Stebalien
Copy link
Member Author

Blocked on libp2p/go-netroute#4.

Copy link

@willscott willscott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return nil, err
}

_, ip, _, err := router.Route(net.IPv4zero)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is v4 centric. may want to try on both v4 and v6

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We currently only support V4 anyways because that's what our port mapping protocols support. When we fix #16, we'll need to use IPv6.

This library makes the correct syscalls instead of shelling out to a binary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants